//
//  BusinessService+User.m
//  SelfDriving
//
//  Created by apple on 16/2/23.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "BusinessService+User.h"
#import "CityModel.h"
@implementation BusinessService(User)
-(void)login:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:LOGIN_ACTION
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
                           loginModel.data = [[NSMutableDictionary alloc]init];
                           if([loginModel.code intValue] == -1){
                               success(loginModel);
                               return ;
                           }
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)updatewifi:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:updatewifiurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
                           loginModel.data = [[NSMutableDictionary alloc]init];
                           if([loginModel.code intValue] == -1){
                               success(loginModel);
                               return ;
                           }
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)login3:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:thirdLoginurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
                           loginModel.data = [[NSMutableDictionary alloc]init];
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}



-(void)registered:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:REGISTE_URL
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
                           loginModel.data = [[NSMutableDictionary alloc]init];
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}

-(void)findPwd:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:findPwd_URL
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
    
}
//获取验证码
-(void)getCode:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    
    [self.http sendRequest:GET_CODE_URL
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSLog(@"codeDate:%@",[result objectForKey:@"data"]);
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success([result objectForKey:@"data"]);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)getCity:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:hometownlist
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSMutableDictionary *dic = [result objectForKey:@"state"];
                           if( [[dic objectForKey:@"code"] intValue]== 1){
                               failure([dic  objectForKey:@"msg"]);
                               return ;
                           }
                           NSMutableArray *newsObjs = [result objectForKey:@"data"];
                           if ([newsObjs count]==0) {
                               success(newsObjs);
                               return;
                           }
                           if (![newsObjs isKindOfClass:[NSNull class]]) {
                               NSMutableArray *userlist = [[NSMutableArray alloc] init];
                               for (id newsObj in newsObjs) {
                                   CityModel *focusModel = [[CityModel alloc] init];
                                   [focusModel serializationWithDictionary:newsObj];
                                   [userlist addObject:focusModel];
                               }
                               success(userlist);
                           }
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)getjoblist:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:joblist
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSMutableDictionary *dic = [result objectForKey:@"state"];
                           if( [[dic objectForKey:@"code"] intValue]== 1){
                               failure([dic  objectForKey:@"msg"]);
                               return ;
                           }
                           NSMutableArray *newsObjs = [result objectForKey:@"data"];
                           if ([newsObjs count]==0) {
                               success(newsObjs);
                               return;
                           }
                           if (![newsObjs isKindOfClass:[NSNull class]]) {
                               NSMutableArray *userlist = [[NSMutableArray alloc] init];
                               for (id newsObj in newsObjs) {
                                   CityModel *focusModel = [[CityModel alloc] init];
                                   [focusModel serializationWithDictionary:newsObj];
                                   [userlist addObject:focusModel];
                               }
                               success(userlist);
                           }
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}

-(void)setAlipayAccount:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:setAlipayAccounturl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
                           loginModel.data = [[NSMutableDictionary alloc]init];
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)publish_hongbao:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:publish_hongbaoURL
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];

                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           [loginModel serializationWithDictionary:result];
                            success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)giveMoney:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:giveMoneyurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           
                           success([result objectForKey:@"data"]);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)delAlipayAccount:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:delAlipayAccounturl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
                           loginModel.data = [[NSMutableDictionary alloc]init];
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)publish_kuaipai:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:publish_kuaipaiurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
                           loginModel.data = [[NSMutableDictionary alloc]init];
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)setAutoBuyMember:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:setAutoBuyMemberurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
                           loginModel.data = [[NSMutableDictionary alloc]init];
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)getUserDetail:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:detailurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
                           loginModel.data = [[NSMutableDictionary alloc]init];
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)setRemark:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:setRemarkurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
                           loginModel.data = [[NSMutableDictionary alloc]init];
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];


}
-(void)setYinsi_type:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:setYinsi_typeurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)setUserOtherConfig:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:setUserOtherConfigurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)recharege:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:recharegeurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
    


}
-(void)setUserWurao:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:setUserWuraourl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)msg_setting:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:msg_settingurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)getincome:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:incomeurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
                           loginModel.data = [[NSMutableDictionary alloc]init];
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)follow:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:followurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                            success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)qiang_hongbao:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:qiang_hongbaourl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
//                           success(loginModel);
                           success(result);  //xhw2018-1-25改
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)income_sort:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:income_sorturl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSMutableDictionary *dic = [result objectForKey:@"state"];
                           if( [[dic objectForKey:@"code"] intValue]== 1){
                               failure([dic  objectForKey:@"msg"]);
                               return ;
                           }
                           NSMutableArray *newsObjs = [result objectForKey:@"data"];
                           if ([newsObjs count]==0) {
                               success(newsObjs);
                               return;
                           }
                           if (![newsObjs isKindOfClass:[NSNull class]]) {
                               NSMutableArray *userlist = [[NSMutableArray alloc] init];
                               for (id newsObj in newsObjs) {
                                   LoginResponseModel *focusModel = [[LoginResponseModel alloc] init];
                                   [focusModel serializationWithDictionary:newsObj];
                                   [userlist addObject:focusModel];
                               }
                               success(userlist);
                           }
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
    
}
-(void)service_search_list:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:service_search_listurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSMutableDictionary *dic = [result objectForKey:@"state"];
                           if( [[dic objectForKey:@"code"] intValue]== 1){
                               failure([dic  objectForKey:@"msg"]);
                               return ;
                           }
                           NSMutableArray *newsObjs = [result objectForKey:@"data"];
                           if ([newsObjs count]==0) {
                               success(newsObjs);
                               return;
                           }
                           if (![newsObjs isKindOfClass:[NSNull class]]) {
                               NSMutableArray *userlist = [[NSMutableArray alloc] init];
                               for (id newsObj in newsObjs) {
                                   LoginResponseModel *focusModel = [[LoginResponseModel alloc] init];
                                   [focusModel serializationWithDictionary:newsObj];
                                   [userlist addObject:focusModel];
                               }
                               success(userlist);
                           }
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)service_list:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:service_listurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSMutableDictionary *dic = [result objectForKey:@"state"];
                           if( [[dic objectForKey:@"code"] intValue]== 1){
                               failure([dic  objectForKey:@"msg"]);
                               return ;
                           }
                           NSMutableArray *newsObjs = [result objectForKey:@"data"];
                           if ([newsObjs count]==0) {
                               success(newsObjs);
                               return;
                           }
                           if (![newsObjs isKindOfClass:[NSNull class]]) {
                               NSMutableArray *userlist = [[NSMutableArray alloc] init];
                               for (id newsObj in newsObjs) {
                                   LoginResponseModel *focusModel = [[LoginResponseModel alloc] init];
                                   [focusModel serializationWithDictionary:newsObj];
                                   [userlist addObject:focusModel];
                               }
                               success(userlist);
                           }
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)service_category_list:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:service_category_listurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSMutableDictionary *dic = [result objectForKey:@"state"];
                           if( [[dic objectForKey:@"code"] intValue]== 1){
                               failure([dic  objectForKey:@"msg"]);
                               return ;
                           }
                           NSMutableArray *newsObjs = [result objectForKey:@"data"];
                           if ([newsObjs count]==0) {
                               success(newsObjs);
                               return;
                           }
                           if (![newsObjs isKindOfClass:[NSNull class]]) {
                               NSMutableArray *userlist = [[NSMutableArray alloc] init];
                               for (id newsObj in newsObjs) {
                                   LoginResponseModel *focusModel = [[LoginResponseModel alloc] init];
                                   [focusModel serializationWithDictionary:newsObj];
                                   [userlist addObject:focusModel];
                               }
                               success(userlist);
                           }
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)posshare_lastUserHeads:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:posshare_lastUserHeadsurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSMutableDictionary *dic = [result objectForKey:@"state"];
                           if( [[dic objectForKey:@"code"] intValue]== 1){
                               failure([dic  objectForKey:@"msg"]);
                               return ;
                           }
                           NSMutableArray *newsObjs = [result objectForKey:@"data"];
                           if ([newsObjs count]==0) {
                               success(newsObjs);
                               return;
                           }
                           if (![newsObjs isKindOfClass:[NSNull class]]) {
                               NSMutableArray *userlist = [[NSMutableArray alloc] init];
                               for (id newsObj in newsObjs) {
                                   LoginResponseModel *focusModel = [[LoginResponseModel alloc] init];
                                   [focusModel serializationWithDictionary:newsObj];
                                   [userlist addObject:focusModel];
                               }
                               success(userlist);
                           }
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)hongbao_record:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
     [self.http sendRequest:hongbao_recordurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
                           loginModel.data = [[NSMutableDictionary alloc]init];
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];


}
-(void)close_safe_login:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:close_safe_loginurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
//                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
//                           loginModel.data = [[NSMutableDictionary alloc]init];
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)bindAccount:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:bindAccounturl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           //                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
                           //                           loginModel.data = [[NSMutableDictionary alloc]init];
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)posshare_quitGroup:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:posshare_quitGroupurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
//                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
                           loginModel.data = [[NSMutableDictionary alloc]init];
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)posshare_enterGroup:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:posshare_enterGroupurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           LoginResponseModel *loginModel = [[LoginResponseModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           [loginModel serializationWithDictionary:[result objectForKey:@"data"]];
//                           loginModel.data = [[NSMutableDictionary alloc]init];
                           success(loginModel);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)has_qianghongbao:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:has_qianghongbaourl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           DTModel *loginModel = [[DTModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(result);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)bindSafePhone:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:bindSafePhoneurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           DTModel *loginModel = [[DTModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(result);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)gedit:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:gediturl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           DTModel *loginModel = [[DTModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(result);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)editNickname:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:editNicknameurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           DTModel *loginModel = [[DTModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(result);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)getmsg:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:getmsgurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           DTModel *loginModel = [[DTModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(result);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)gadd:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:gaddurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           DTModel *loginModel = [[DTModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(result);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)quit:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:quiturl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           DTModel *loginModel = [[DTModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(result);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)contactList:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:contactListurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSMutableDictionary *dic = [result objectForKey:@"state"];
                           if( [[dic objectForKey:@"code"] intValue]== 1){
                               failure([dic  objectForKey:@"msg"]);
                               return ;
                           }
                           NSMutableArray *newsObjs = [result objectForKey:@"data"];
                           if ([newsObjs count]==0) {
                               success(newsObjs);
                               return;
                           }
                           if (![newsObjs isKindOfClass:[NSNull class]]) {
                               NSMutableArray *userlist = [[NSMutableArray alloc] init];
                               for (id newsObj in newsObjs) {
                                   LoginResponseModel *focusModel = [[LoginResponseModel alloc] init];
                                   [focusModel serializationWithDictionary:newsObj];
                                   [userlist addObject:focusModel];
                               }
                               success(userlist);
                           }
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)search:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:searchurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSMutableDictionary *dic = [result objectForKey:@"state"];
                           if( [[dic objectForKey:@"code"] intValue]== 1){
                               failure([dic  objectForKey:@"msg"]);
                               return ;
                           }
                           NSMutableArray *newsObjs = [result objectForKey:@"data"];
                           if ([newsObjs count]==0) {
                               success(newsObjs);
                               return;
                           }
                           if (![newsObjs isKindOfClass:[NSNull class]]) {
                               NSMutableArray *userlist = [[NSMutableArray alloc] init];
                               for (id newsObj in newsObjs) {
                                   LoginResponseModel *focusModel = [[LoginResponseModel alloc] init];
                                   [focusModel serializationWithDictionary:newsObj];
                                   [userlist addObject:focusModel];
                               }
                               success(userlist);
                           }
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)addUserToSession:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:addUserToSessionurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           DTModel *loginModel = [[DTModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(result);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)remove:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:removeurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           DTModel *loginModel = [[DTModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(result);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)netcollect:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:netcollecturl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           DTModel *loginModel = [[DTModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(result);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)sharerecord:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:sharerecordurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           DTModel *loginModel = [[DTModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(result);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)gdelete:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:gdeleteurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           DTModel *loginModel = [[DTModel alloc] init];
                           [loginModel serializationWithDictionary:[result objectForKey:@"state"]];
                           if([loginModel.code intValue] ==1){
                               failure(loginModel.msg);
                               return ;
                           }
                           success(result);
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)xingzuoLists:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:xingzuoListsurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSMutableDictionary *dic = [result objectForKey:@"state"];
                           if( [[dic objectForKey:@"code"] intValue]== 1){
                               failure([dic  objectForKey:@"msg"]);
                               return ;
                           }
                           NSMutableArray *newsObjs = [result objectForKey:@"data"];
                           if (newsObjs==nil&&[newsObjs count]==0) {
                               success(newsObjs);
                               return;
                           }
                           if (![newsObjs isKindOfClass:[NSNull class]]) {
                               NSMutableArray *userlist = [[NSMutableArray alloc] init];
                               for (id newsObj in newsObjs) {
                                    
                                   [userlist addObject:newsObj];
                               }
                               success(userlist);
                           }
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
    

}
//全球区号
-(void)haoma:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:haomaurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSMutableDictionary *dic = [result objectForKey:@"state"];
                           if( [[dic objectForKey:@"code"] intValue]== 1){
                               failure([dic  objectForKey:@"msg"]);
                               return ;
                           }
                           NSMutableArray *newsObjs = [result objectForKey:@"data"];
                           if (newsObjs==nil&&[newsObjs count]==0) {
                               success(newsObjs);
                               return;
                           }
                           if (![newsObjs isKindOfClass:[NSNull class]]) {
                               NSMutableArray *userlist = [[NSMutableArray alloc] init];
                               for (id newsObj in newsObjs) {
                                   
                                   [userlist addObject:newsObj];
                               }
                               success(userlist);
                           }
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)dynamic_unread_list:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:dynamic_unread_listurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSMutableDictionary *dic = [result objectForKey:@"state"];
                           if( [[dic objectForKey:@"code"] intValue]== 1){
                               failure([dic  objectForKey:@"msg"]);
                               return ;
                           }
                           NSMutableArray *newsObjs = [result objectForKey:@"data"];
                           if ([newsObjs count]==0) {
                               success(newsObjs);
                               return;
                           }
                           if (![newsObjs isKindOfClass:[NSNull class]]) {
                               NSMutableArray *userlist = [[NSMutableArray alloc] init];
                               for (id newsObj in newsObjs) {
                                   LoginResponseModel *focusModel = [[LoginResponseModel alloc] init];
                                   [focusModel serializationWithDictionary:newsObj];
                                   [userlist addObject:focusModel];
                               }
                               success(userlist);
                           }
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)thirdfriend:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:thirdfriendurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSMutableDictionary *dic = [result objectForKey:@"state"];
                           if( [[dic objectForKey:@"code"] intValue]== 1){
                               failure([dic  objectForKey:@"msg"]);
                               return ;
                           }
                           NSMutableArray *newsObjs = [result objectForKey:@"data"];
                           if ([newsObjs count]==0) {
                               success(newsObjs);
                               return;
                           }
                           if (![newsObjs isKindOfClass:[NSNull class]]) {
                               NSMutableArray *userlist = [[NSMutableArray alloc] init];
                               for (id newsObj in newsObjs) {
                                   LoginResponseModel *focusModel = [[LoginResponseModel alloc] init];
                                   [focusModel serializationWithDictionary:newsObj];
                                   [userlist addObject:focusModel];
                               }
                               success(userlist);
                           }
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
-(void)recommendList:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{

    [self.http sendRequest:recommendListurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSMutableDictionary *dic = [result objectForKey:@"state"];
                           if( [[dic objectForKey:@"code"] intValue]== 1){
                               failure([dic  objectForKey:@"msg"]);
                               return ;
                           }
                           NSMutableDictionary *newsObjs = [result objectForKey:@"data"];
                           if ([newsObjs count]==0) {
                               success(newsObjs);
                               return;
                           }
                           if (![newsObjs isKindOfClass:[NSNull class]]) {
                               NSMutableArray *userlist = [[NSMutableArray alloc] init];
                                   LoginResponseModel *focusModel = [[LoginResponseModel alloc] init];
                                   [focusModel serializationWithDictionary:newsObjs];
                                   [userlist addObject:focusModel];
                               success(userlist);
                           }
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)detail:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
     [self.http sendRequest:gdetailurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSMutableDictionary *dic = [result objectForKey:@"state"];
                           if( [[dic objectForKey:@"code"] intValue]== 1){
                               failure([dic  objectForKey:@"msg"]);
                               return ;
                           }
                           NSMutableDictionary *newsObjs = [result objectForKey:@"data"];
                           if ([newsObjs count]==0) {
                               success(newsObjs);
                               return;
                           }
                           if (![newsObjs isKindOfClass:[NSNull class]]) {
                                LoginResponseModel *focusModel = [[LoginResponseModel alloc] init];
                               [focusModel serializationWithDictionary:newsObjs];
                                success(focusModel);
                           }
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];
}
-(void)sessionLists:(NSMutableDictionary *)parameters success:(void (^)(id))success failure:(void (^)(id))failure{
    [self.http sendRequest:sessionListsurl
                Parameters:parameters
                   Timeout:REQUEST_MAX_TIMEOUT
                    Method:GET_METHOD
                   Success:^(id result) {
                       if ([result isKindOfClass:[NSMutableDictionary class]]||[result isKindOfClass:[NSDictionary class]]) {
                           NSMutableDictionary *dic = [result objectForKey:@"state"];
                           if( [[dic objectForKey:@"code"] intValue]== 1){
                               failure([dic  objectForKey:@"msg"]);
                               return ;
                           }
                           NSMutableArray *newsObjs = [result objectForKey:@"data"];
                           if ([newsObjs count]==0) {
                               success(newsObjs);
                               return;
                           }
                           if (![newsObjs isKindOfClass:[NSNull class]]) {
                               NSMutableArray *userlist = [[NSMutableArray alloc] init];
                               for (id newsObj in newsObjs) {
                                   LoginResponseModel *focusModel = [[LoginResponseModel alloc] init];
                                   [focusModel serializationWithDictionary:newsObj];
                                   [userlist addObject:focusModel];
                               }
                               success(userlist);
                           }
                       } else {
                           failure(@"服务器内部错误");
                       }
                   }
                   Failure:^(NSString *message, NSError *error) {
                       failure(message);
                   }];

}
@end
